package com.wt.admin.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wt.admin.domain.entity.sys.SysRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysRoleMapper extends BaseMapper<SysRoleEntity> {

    IPage<SysRoleEntity> find(Page<SysRoleEntity> page, SysRoleEntity sysRole);

    @Select("select * from sys_role where enable_tag = 1")
    List<SysRoleEntity> selectAll();

}
